<%@ page import="java.util.List" %>
<%@ page import="bean.EmpInfo" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1" width="60%" align="center">
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>职位</th>
            <th>上司编号</th>
            <th>入职时间</th>
            <th>工资</th>
            <th>奖金</th>
            <th>部门编号</th>
            <th>状态</th>
        </tr>

    <%
        List<EmpInfo> list = (List<EmpInfo>)request.getAttribute("ALL_EMP_LIST");
        for (EmpInfo ei:list){
            out.print("<tr>");
            out.print("<td>"+ei.getEmpNo()+"</td>");
            out.print("<td>"+ei.getEname()+"</td>");
            out.print("<td>"+ei.getJob()+"</td>");
            out.print("<td>"+ei.getMgr()+"</td>");
            out.print("<td>"+ei.getHireDate()+"</td>");
            out.print("<td>"+ei.getSal()+"</td>");
            out.print("<td>"+ei.getComm()+"</td>");
            out.print("<td>"+ei.getDeptNo()+"</td>");
            out.print("<td>"+ei.getEmpState()+"</td>");
            out.print("</tr>");
        }
    %>
    </table>
</body>
</html>
